Skip to content

Add status page badges - #430

Merged
jbrooksuk merged 1 commit into
mainfrom
codex/component-status-badges
Aug 13, 2026
Merged

Add status page badges#430
jbrooksuk merged 1 commit into
mainfrom
codex/component-status-badges

Conversation

@jbrooksuk

@jbrooksuk jbrooksuk commented Aug 12, 2026

Copy link
Copy Markdown
Member

Summary

Adds cacheable SVG badges for the overall status page and individual public components.

  • Introduces /badge.svg and /components/{component}/badge.svg beneath the configured Cachet path.
  • Uses Badger 5.0 to generate SVG output, with supported style selection via ?style=.
  • Uses dedicated invokable controllers for system and component badges.
  • Keeps status-to-badge-color mappings on the relevant enums, with unit coverage.
  • Returns 404 for disabled components and components in non-public groups.

Validation

  • vendor/bin/pest tests/Feature/StatusPage/StatusPageTest.php tests/Unit/StatusBadgeColorTest.php --compact (33 passed)
  • vendor/bin/pint for changed files
  • composer validate --no-check-publish

The full parallel test command was also attempted earlier but an unrelated subscriber test worker exceeded its fixed 128 MB memory limit.

@jbrooksuk
jbrooksuk force-pushed the codex/component-status-badges branch from 6555490 to 86288ac Compare August 12, 2026 12:33
@jbrooksuk
jbrooksuk force-pushed the codex/component-status-badges branch from 86288ac to 844bfd6 Compare August 12, 2026 13:02
@jbrooksuk
jbrooksuk marked this pull request as ready for review August 13, 2026 08:22
@jbrooksuk
jbrooksuk merged commit c2cb92c into main Aug 13, 2026
23 checks passed
@jbrooksuk
jbrooksuk deleted the codex/component-status-badges branch August 13, 2026 08:22

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃挕 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 844bfd6afd

鈩癸笍 About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 馃憤.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread composer.json
"require": {
"php": "^8.3",
"ext-simplexml": "*",
"cachethq/badger": "^5.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Obtain approval before adding Badger

This introduces cachethq/badger as a new runtime dependency, but the repository explicitly prohibits adding dependencies without prior approval, and the reviewed change provides no evidence of that approval. Obtain and document approval or use an existing approved dependency before merging.

AGENTS.md reference: AGENTS.md:L20-L24

Useful? React with 馃憤聽/ 馃憥.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant